home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000096_news@newsmaster….columbia.edu _Tue May 19 18:24:26 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA03982
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 19 May 1998 18:24:26 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id SAA03194
  7.     for kermit.misc@watsun; Tue, 19 May 1998 18:24:26 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Paging from Unix prompt?
  12. Date: 19 May 1998 22:24:21 GMT
  13. Organization: Columbia University
  14. Lines: 43
  15. Message-ID: <6jt0ql$67h$1@apakabar.cc.columbia.edu>
  16. References: <6jstj2$6mc@portal.gmu.edu>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8749
  19.  
  20. In article <6jstj2$6mc@portal.gmu.edu>,
  21. Ravi Malghan <rmalghan@site.gmu.edu> wrote:
  22. : I have a script which takes three variables and I am able to send a page from
  23. : the C-Kermit prompt. But I need to implement such that I can page from the 
  24. : Unix prompt (possibly from other applications as a system command). right
  25. : now I have a macro defined as following. Could somebody please help me.
  26. : =====
  27. : define DIAL_PAGE {
  28. : set modem type usr      ;
  29. : set port /dev/ttya     ;
  30. : set speed 9600         ;
  31. : set dial display on     ;
  32. : dial \%1        ;
  33. : }
  34. : define NPAGE {
  35. : set dial timeout 240    ;
  36. : DIAL_PAGE \%1@\%2#\%3##;
  37. : clear dial-status       ;
  38. : hangup  ;
  39. : }        
  40. :
  41. First of all, since you are sending a numeric page, you should use
  42. PDIAL rather than DIAL, since DIAL will fail if the modem does not
  43. indicate carrier.
  44.  
  45. So at the C-Kermit> prompt you type something like:
  46.  
  47.   npage 7654321 1234 5678
  48.  
  49. right?  There are several ways to do this from the UNIX prompt.
  50. One way is to make a shell script containing:
  51.  
  52.   kermit -C "def \\%1 $1, def \\%2 $2, def \\%3 $3, take npage.ksc"
  53.  
  54. where npage.ksc is the file that contains the NPAGE and DIAL_PAGE macro
  55. definitions.  Or, if the NPAGE and DIAL_PAGE macros are defined in your
  56. C-Kermit startup files:
  57.  
  58.   kermit -C "npage $1 $2 $3"
  59.  
  60. - Frank